import {LanguageType} from "../api/LanguageRequest";
import {UserType} from "../api/UserRequest";
import {TypeType} from "../api/GoodTypeRequest";
import {MainPageType} from "../api/MainPageRequest";
import {CompanyType} from "../api/CompanyRequest";

export interface State{
    config:GlobalConfigType
    globalInfo:GlobalInfoType
    visible:{
        actionBar:boolean
        shopCart:boolean
    }
}

export interface GlobalConfigType{
    token?:string|null
    refreshToken?:string|null
    languageId?:string|null
}

export interface GlobalInfoType{
    languageMap?:Map<string,LanguageType>
    languageList?:LanguageType[]
    userInfo?:UserType|null
    cartInfo?:any
    mainPageInfo?:MainPageType|null
    companyInfo?:CompanyType|null
    goodTypeTreeList?: TypeType[]
}
